package com.ruoyi.edu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论业务对象 edu_comment
 *
 * @author ruoyi
 * @date 2022-08-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EduCommentBo extends BaseEntity {

    /**
     * ID
     */
    private String id;

    /**
     * 课程id
     */
    @NotBlank(message = "课程id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseId;

    /**
     * 讲师id
     */
    @NotBlank(message = "讲师id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 会员id
     */
    private String memberId;

    /**
     * 会员昵称
     */
    @NotBlank(message = "会员昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickname;

    /**
     * 会员头像
     */
    private String avatar;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
